import React from 'react'
//菜单查询
export async function apiPage(params = {}){
    return await React.$post('/management/sysStoreMenu/list', params);
}
//获取列表带权限
export async function apiRoleWithIdent(params = {}){
    return await React.$post('/management/sysStoreMenu/listWithIdent', params);
}
//增加菜单
export async function apiAdd(params){
    return await React.$post('/management/sysStoreMenu/add', params)
}
//修改菜单信息
export async function apiEdit(params){
    return await React.$post('/management/sysStoreMenu/edit', params)
}
//查看菜单
export async function apiDetails(params){
    return await React.$post('/management/sysStoreMenu/view', params)
}
//删除菜单
export async function apiMenuRemove(params){
    return await React.$post('/management/sysStoreMenu/remove', params)
}

//增加角色菜单关系
export async function apiRoleToMenu(params) {
    return await React.$post('/management/sys/roleMenu/add', params)
}
//修改菜单状态 /menu/sysMenu/changeState
export async function apiMenuChangeState(params) {
    return await React.$post('/management/sysStoreMenu/changeStatus', params)
}
//菜单权限列表
export async function apiMenuIdentList(params) {
    return await React.$post('/management/sysStoreIdent/list', params)
}
//菜单权限增加
export async function apiMenuIdentAdd(params) {
    return await React.$post('/management/sysStoreIdent/add', params)
}
//菜单权限删除
export async function apiMenuIdentRemove(params) {
    return await React.$post('/management/sysStoreIdent/remove', params)
}
